﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Regist.aspx.cs" Inherits="WISD.CarFriend.Web.OA.Regist" %>

<%@ Register Src="~/UserControls/Top.ascx" TagName="top" TagPrefix="CFControl" %>
<%@ Register Src="~/UserControls/Footer.ascx" TagName="footer" TagPrefix="CFControl" %>
<%@ Register Src="~/UserControls/Right.ascx" TagName="right" TagPrefix="CFControl" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>车友俱乐部 </title>
    <meta name="keywords" content="车友俱乐部,cyaa" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link type="text/css" rel="stylesheet" href="../Content/CSS/ClientCSS/style.css" />
    <link href="Content/CSS/ClientCSS/Style.css" rel="stylesheet" type="text/css" />
    <script src="Scripts/CommonScripts/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script src="Scripts/ClientScripts/jsAddress.js" type="text/javascript"></script>
    <script src="Scripts/DatePicker/WdatePicker.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/MessageBox.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/jquery.validate.min.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/cursorfocus.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/messages_cn.js" type="text/javascript"></script>
    <script src="../Scripts/CommonScripts/jquery.form.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });

        jQuery(document).ready(function () {
            jQuery.validator.addMethod("telphoneValid", function (value, element) {
                var tel = /^(13|14|15|18)[0-9]{9}$/;
                return tel.test(value) || this.optional(element);
            }, "移动电话格式不对");
            jQuery.validator.addMethod("numberAnd", function (value, element) {
                var tel = /^[0-9a-zA-Z]+$/;
                return tel.test(value) || this.optional(element);
            }, "请输入字母或数字");
            jQuery.validator.addMethod("txtWebUserName", function (value, element) {
                var tel = /^[A-Za-z0-9_\-\u4e00-\u9fa5]+$/;
                return tel.test(value) || this.optional(element);
            }, "只能为中英文");
            jQuery.validator.addMethod("txtWebPwd", function (value, element) {
                var tel = /^[A-Za-z0-9_-]+$/;
                return tel.test(value) || this.optional(element);
            }, "只能为字母数字下划线");
            jQuery.validator.addMethod("qq", function (value, element) {
                var tel = /^[1-9]*[1-9][0-9]*$/;
                return tel.test(value) || this.optional(element);
            }, "QQ格式不对");
            jQuery.validator.addMethod("mail", function (value, element) {
                var tel = /^\w+((-w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/;
                return tel.test(value) || this.optional(element);
            }, "电子邮件格式不对");
            jQuery.validator.addMethod("sfz", function (value, element) {
                var tel = /^\d{17}[\d|x]|\d{15}$/;
                return tel.test(value) || this.optional(element);
            }, "身份证号格式不对");
            jQuery.validator.addMethod("checkVehicle", function (value, element) {
                var tel = /^[\u4e00-\u9fa5]{1}[A-Z]{1}[A-Z_0-9]{5}$/;
                return tel.test(value) || this.optional(element);
            }, "车牌号码规则：第一个必须是汉字，第二个必须是大写字母，后5个必须是大写字母或数字");
        });       
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <!--Head.Start-->
    <CFControl:top ID="Header" runat="server" />
    <!--Head.End-->
    <!--content.Start-->
    <div class="main">
        <div class="line10">
        </div>
        <!--left.start-->
        <div class="nleft">
            <div class="prplace">
                <a href="../../Index.aspx">主页</a> > 会员注册>
            </div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                <tr>
                    <th colspan="4" align="left">
                        会员注册
                    </th>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        会员编码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMemberID" runat="server" CssClass="input w380  required  numberAnd"
                            ReadOnly="true"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        网站用户名：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtWebUserName" runat="server" CssClass="input w380 required txtWebUserName"
                            tip="webUserName" MaxLength="50" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        网站用户密码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtWebPwd" runat="server" CssClass="input w380  required txtWebPwd"
                            tip="webPwd" MaxLength="50" minlength="1" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        确认密码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtWebPwdCheck" runat="server" CssClass="input w380  required txtWebPwd"
                            tip="webPwdCheck" MaxLength="50" minlength="1" TextMode="Password"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        姓名：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtName" runat="server" CssClass="input w380 required" MaxLength="50"
                            tip="name" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        性别：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:DropDownList ID="ddl_sex" runat="server">
                            <asp:ListItem Value="1">男</asp:ListItem>
                            <asp:ListItem Value="0">女</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        生日：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtBirthday" onclick="WdatePicker()" runat="server" CssClass="input w380"
                            tip="birthday"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        移动电话：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtMobileTel" runat="server" CssClass="input w380 telphoneValid "
                            tip="mobileTel"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        QQ：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtQQ" runat="server" CssClass="input w380 qq" tip="qq"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        电子邮件：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtEmail" runat="server" CssClass="input w380 mail" tip="email"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        身份证号：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtIdentityCard" runat="server" CssClass="input w380 sfz" MaxLength="18"
                            tip="identityCard" minlength="15"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        所在区域：
                    </td>
                    <td width="82%" colspan="3">
                        <select id="ddlProvince" runat="server">
                        </select>
                        省
                        <select id="ddlCity" runat="server">
                        </select>
                        市
                        <select id="ddlCountry" runat="server">
                        </select>
                        区
                        <script type="text/javascript">
                            addressInit("ddlProvince", "ddlCity", "ddlCountry", '江苏', '苏州市', '市辖区');
                        </script>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        下次回访日期：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtReturnVisitDate" onclick="WdatePicker()" runat="server" CssClass="input  w380"
                            tip="returnVisitDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车牌号码：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtVehicleNo" runat="server" CssClass="input w380 checkVehicle" MaxLength="20"
                            minlength="1" tip="vehicleNo" ></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车型：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtVehicleStyle" runat="server" CssClass="input w380" MaxLength="20"
                            tip="vehicleStyle" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        发动机号码：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtEngineNo" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="engineNo" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车架号码：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtVehicleFrameNo" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="vehicleFrameNo" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        驾驶证号码：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtDriveCardNo" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="driveCardNo" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        驾驶证年审日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtDriveCardAnnualReviewDate" onclick="WdatePicker()" runat="server"
                            tip="driveCardAnnualReviewDate" CssClass="input"></asp:TextBox>
                    </td>
                    <td width="18%" align="right">
                        初次领证日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtDriveCardGetDate" onclick="WdatePicker()" runat="server" CssClass="input"
                            tip="driveCardGetDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        行驶证号码：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtRideCardNo" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="rideCardNo" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        行驶证年审日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtRideCardAnnualReviewDate" onclick="WdatePicker()" runat="server"
                            tip="rideCardAnnualReviewDate" CssClass="input"></asp:TextBox>
                    </td>
                    <td width="18%" align="right">
                        购车日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtPurchaseDate" onclick="WdatePicker()" runat="server" CssClass="input"
                            tip="purchaseDate"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        下次保养日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtNextMaintenanceDate" onclick="WdatePicker()" runat="server" CssClass="input"
                            tip="nextMaintenanceDate"></asp:TextBox>
                    </td>
                    <td width="18%" align="right">
                        车辆年检到期日期：
                    </td>
                    <td width="35%">
                        <asp:TextBox ID="txtVehicleAnnualInspectionDate" onclick="WdatePicker()" runat="server"
                            tip="vehicleAnnualInspectionDate" CssClass="input"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        保单号码：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtInsuranceNo" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="insuranceNo" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        保单到期日期：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtInsuranceExpirationDate" onclick="WdatePicker()" runat="server"
                            tip="insuranceExpirationDate" CssClass="input w380 "></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        油耗：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtOilConsumption" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="oilConsumption" minlength="1"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        车辆已行驶公里：
                    </td>
                    <td width="82%" colspan="3">
                        <asp:TextBox ID="txtDriveKilometers" runat="server" CssClass="input w380 " MaxLength="20"
                            tip="driveKilometers"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td width="18%" align="right">
                        是否开卡：<span style="color: Red">*</span>
                    </td>
                    <td width="82%" colspan="3">
                        <asp:DropDownList ID="ddlOpenCard" runat="server">
                            <asp:ListItem Value="0">否</asp:ListItem>
                            <asp:ListItem Value="1">是</asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
            </table>
            <div style="margin-top: 10px; text-align: center;">
                <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />&nbsp;
                <%--OnClientClick="return MessageShowAlert()"--%>
                <input name="重置" type="reset" class="submit" value="重置" />
                <script language="javascript">
                    function MessageShowAlert() {
                        alert("asd");
                        window.location.href = '../../Index.aspx';
                        return false;
                    }
                </script>
            </div>
        </div>
        <!--left.end-->
        <!--right.start-->
        <CFControl:right ID="Right" runat="server" />
        <!--right.end-->
    </div>
    <!--content.End-->
    <!--footer Start-->
    <CFControl:footer ID="Footer" runat="server" />
    <!--footer End-->
    </form>
</body>
</html>
